//package com.weifeng.jdsignin;
//
//import com.alibaba.fastjson.JSON;
//import org.apache.http.util.EntityUtils;
//import org.json.JSONObject;
//
//
//import java.util.Map;
//
///**
// * @description：练习  string 转 json，并输出想要的字段值
// * @USER ：weifeng
// * @date ：2022/11/15 下午 03:06
// */
//public class a {
//    private int aa = 1;
//    public static void main(String[] args) {
////        String s = "{\"msg\":\"complete\",\"returnMsg\":\"complete\",\"code\":\"0\",\"chances\":\"0\"," +
////                "\"subCode\":\"1\",\"srv\":\"{\\\"bord\\\":\\\"0\\\",\\\"fno\\\":\\\"0-0-2\\\"," +
////                "\\\"mid\\\":\\\"77512871\\\",\\\"bi2\\\":\\\"2\\\",\\\"bid\\\":\\\"0\\\"," +
////                "\\\"aid\\\":\\\"01155413\\\",\\\"cid\\\":\\\"-100\\\",\\\"jud\\\":\\\"-100\\\"}\"," +
////                "\"promptMsg\":\"您的抽奖机会已用完~\",\"promptMsg\":\"您的抽奖机会已用完\",\"transParam\":\"\",\"channelPoint\":{\"babelChannel\":\"\"," +
////                "\"greytp\":\"1\",\"rec_broker\":\"\",\"loginCellularNetwork\":0,\"pageId\":\"\"}," +
////                "\"responseMessage\":\"103-任务已完成\"}";
////        JSON j = (JSON) JSON.toJSON(JSON.parse(s));
////
////        JSONObject jsonObject = new JSONObject(s);
////        String s1 = jsonObject.getString("promptMsg");
////        System.out.println(s1);
//
//
//
//
//        Object errorMessage = null;
//
//
//        String q = "{\n" +
//                "      \"name\": \"Json on\",\n" +
//                "      \"description\": \"一个简洁的在线 JSON 查看器\",\n" +
//                "      \"open source\": {\n" +
//                "        \"是否开源\": true,\n" +
//                "        \"GitHub\": \"https://github.com/bimohxh/jsonon\"\n" +
//                "      },\n" +
//                "     \"errorMessage\":aaa\n" +
//                "}";
//        JSONObject jsonObject = new JSONObject(q);
//        errorMessage = jsonObject.get("errorMessage");
//        System.out.println(errorMessage);
//
//    }
//
//}
